package com.treeroot.designMode.Strategy;

/**
 * 具体策略类 继承实现打折策略
 * @author treeroot
 *
 */
public class EightDiscountStrategy implements DiscountStrategy {
    @Override
    public double calculateDiscountPrice(Goods goods) {
        return goods.getPrice() * 0.8;
    }
}
